local UI = SecretaryUI

local function ContainerFrame_OnScrollRangeChanged(self, x, y)
	self:GetParent().object:OnContainerRangeChanged(x, y)
end

local function CreateContainerFrame(parent)
	local container = CreateFrame("ScrollFrame", nil, parent)
	
	container:SetScript("OnScrollRangeChanged", ContainerFrame_OnScrollRangeChanged)
	
	return container
end

UI.CreateContainerFrame = CreateContainerFrame
